package group.raber.saber.kit;

import java.util.Date;

/**
 * Created by tisir<yangsong158@qq.com> on 2017-02-19
 */
public class SQLKit {

    /**
     * SQL的日期转JAVA日期
     * @param sqlDate
     * @return
     */
    public static Date javaDate(java.sql.Date sqlDate){
        return new Date (sqlDate.getTime());
    }

    /**
     * JAVA日期转SQL日期
     * @param javaDate
     * @return
     */
    public static java.sql.Date sqlDate(Date javaDate){
        return new java.sql.Date(javaDate.getTime());
    }
}
